class Servico < ActiveRecord::Base
	has_many :hospedagems, :through => :requisicaos
	has_many :requisicaos
	attr_accessible :desc_curta, :desc_longa, :preco

	validates_presence_of :desc_curta
  	validates_presence_of :desc_longa
  	validates_presence_of :preco
  	validates_numericality_of :preco
end
